/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.ac.iie.di.commons.speeder.limiter;

import cn.ac.iie.di.commons.speeder.lifecycle.LifeCycle;

/**
 *
 * @author zwlin
 */
public interface TokenBucket extends LifeCycle {

    public boolean get(int num);

    public boolean tryGet(int num);
}
